import request from '@/axios';
import {baseUrl} from '@/config/env';

export const list = (data) => {
    return request({
            url: baseUrl + '/start/myActCommentApi/page',
            method: 'get',
            params: data
        }
    )
}
export const add = (data) => {
    return request({
            url: baseUrl + '/start/myActCommentApi/add',
            method: 'post',
            data: data
        }
    )
}

export const updateUserCommentDefaultById = (id) => {
    return request({
            url: baseUrl + '/start/myActCommentApi/updateUserCommentDefaultById/' + id,
            method: 'get',

        }
    )
}
export const deleteById = (id) => {
    return request({
            url: baseUrl + '/start/myActCommentApi/deleteById/' + id,
            method: 'delete',
        }
    )
}
export const getById = (id) => {
    return request({
            url: baseUrl + '/start/myActCommentApi/getById/' + id,
            method: 'get',
        }
    )
}


const myActCommentApi = {
    add,
    list,
    page: list,
    getById,
    updateUserCommentDefaultById,
    deleteById
}
export default myActCommentApi
